﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GO_Test_1 {

	public static class RenderingEngine {

		public static void Draw(SpriteBatch spriteBatch) {
			foreach (Guid id in ComponentManager.IDs) {
				if (!ComponentManager.Appearances.ContainsKey(id)) {
					continue;
				}
				Vector2 position = ComponentManager.Positions[id];
				Appearance appearance = ComponentManager.Appearances[id];
				spriteBatch.Draw(appearance.Texture, position, appearance.Color);
			}
		}

	}

}